// src/services/company.ts
import { request } from '@umijs/max';

// 获取公司列表
export async function getCompanyList(params: any) {
  return request('/best-live-boot/sys/company/list', {
    method: 'GET',
    params,
  });
}

// 删除单个公司
export async function deleteCompany(params: { id: string }) {
  return request('/best-live-boot/sys/company/delete', {
    method: 'DELETE',
    params,
  });
}

// 添加公司
export async function addCompany(data: any) {
  return request('/best-live-boot/sys/company/add', {
    method: 'POST',
    data,
  });
}

// 编辑公司
export async function editCompany(data: any) {
  return request('/best-live-boot/sys/company/edit', {
    method: 'PUT',
    data,
  });
}
